import request from '@/utils/request'

// 查询拧紧枪管理列表
export function listScrewGanDevice(query) {
  return request({
    url: '/system_setting/screwGanDevice/list',
    method: 'get',
    params: query
  })
}

// 查询拧紧枪管理详细
export function getScrewGanDevice(screwGanId) {
  return request({
    url: '/system_setting/screwGanDevice/' + screwGanId,
    method: 'get'
  })
}

// 新增拧紧枪管理
export function addScrewGanDevice(data) {
  return request({
    url: '/system_setting/screwGanDevice',
    method: 'post',
    data: data
  })
}

// 修改拧紧枪管理
export function updateScrewGanDevice(data) {
  return request({
    url: '/system_setting/screwGanDevice',
    method: 'put',
    data: data
  })
}

// 删除拧紧枪管理
export function delScrewGanDevice(screwGanId) {
  return request({
    url: '/system_setting/screwGanDevice/' + screwGanId,
    method: 'delete'
  })
}
